<script>	
	function filterCondition()
	{					
		var resultcamera = document.getElementById('camera').value;
		var resultdkloc =  document.getElementById('loc').value;	
		
		if (window.XMLHttpRequest)
		  {
		  xmlhttp=new XMLHttpRequest();
		  }
		else
		  {
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.readyState==4 && xmlhttp.status==200)
			{
			document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
			}
		  }
 
		xmlhttp.open("GET","getcamera.php?q="+resultdkloc+"&camera_id="+resultcamera,true);
		xmlhttp.send();
	}
	
	function newPopup(url) {
					popupWindow = window.open(
						url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
				}
</script>